#filename str_method.py
name = 'swaroop'
if name.startswith('swa'):
	print(name,'以swa开头')
if 'war' in name:
	print('war存在',name,'中')
if name.find('war') != -1:
	print('war存在',name,'中')
delimiter = ','
myshop = ['a','b','c']
newStr = delimiter.join(myshop)
print(newStr)